package com.benyanyi.picker;

import java.util.List;

/**
 * @author YanYi
 * @date 2020/6/24 15:20
 * @email ben@yanyi.red
 * @overview
 */
class DataUtil {

    static boolean isListEmpty(List<?> list) {
        return list == null || list.isEmpty();
    }

    static boolean isListNotEmpty(List<?> list) {
        return list != null && !list.isEmpty();
    }

    static boolean isEmpty(String str) {
        return str == null || str.isEmpty() || str.length() == 0 || str.trim() == null || str.trim().equals("");
    }
}
